package com.weichen.xd.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Dune on 2017/8/23.
 */

public class Cond implements Parcelable {

    public static final Creator<Cond> CREATOR = new Creator<Cond>() {
        @Override
        public Cond createFromParcel(Parcel source) {
            return new Cond(source);
        }

        @Override
        public Cond[] newArray(int size) {
            return new Cond[size];
        }
    };
    /**
     * code : 104
     * txt : 阴
     */

    @SerializedName("code")
    private String code;
    @SerializedName("txt")
    private String txt;
    /**
     * code_d : 100
     * code_n : 100
     * txt_d : 晴
     * txt_n : 晴
     */

    @SerializedName("code_d")
    private String codeD;
    @SerializedName("code_n")
    private String codeN;
    @SerializedName("txt_d")
    private String txtD;
    @SerializedName("txt_n")
    private String txtN;

    public Cond() {
    }

    protected Cond(Parcel in) {
        this.code = in.readString();
        this.txt = in.readString();
        this.codeD = in.readString();
        this.codeN = in.readString();
        this.txtD = in.readString();
        this.txtN = in.readString();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTxt() {
        return txt;
    }

    public void setTxt(String txt) {
        this.txt = txt;
    }

    public String getCodeD() {
        return codeD;
    }

    public void setCodeD(String codeD) {
        this.codeD = codeD;
    }

    public String getCodeN() {
        return codeN;
    }

    public void setCodeN(String codeN) {
        this.codeN = codeN;
    }

    public String getTxtD() {
        return txtD;
    }

    public void setTxtD(String txtD) {
        this.txtD = txtD;
    }

    public String getTxtN() {
        return txtN;
    }

    public void setTxtN(String txtN) {
        this.txtN = txtN;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.code);
        dest.writeString(this.txt);
        dest.writeString(this.codeD);
        dest.writeString(this.codeN);
        dest.writeString(this.txtD);
        dest.writeString(this.txtN);
    }
}
